package com.yun.zf.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yun.zf.common.admin.domain.ZfPactCert;
import com.yun.zf.common.admin.model.customer.PactCertMo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 客户证件信息 Mapper 接口
 * </p>
 *
 * @author cj
 * @since 2021-08-06
 */
@Mapper
public interface ZfPactCertMapper extends BaseMapper<ZfPactCert> {

    @Select("<script>" +
            " SELECT c.path,c.url from zf_pact_cert c WHERE c.person_id=#{personId} and city_code=#{cityCode} and province_code=#{proCode}" +
            "</script>")
    List<PactCertMo> getCerts(Long  personId, Long proCode, Long cityCode );
}
